import QtQuick 2.0

QtObject {
    id: attributes

    property string name
    property var posX
    property var posY
    property var posZ

    property var rotationX
    property var rotationY
    property var rotationZ

    property var scaleX
    property var scaleY
    property var scaleZ

    function init(name)
    {
        var map = {}

        map.name = name
        map.posX = 0
        map.posY = 20
        map.posZ = 0

        map.rotationX = 0
        map.rotationY = 0
        map.rotationZ = 0

        map.scaleX = 1  //0.02
        map.scaleY = 1  //0.02
        map.scaleZ = 1  //0.02

        map.mesh = ""
        map.color = "#ffffff"

        return map
    }

    function initCamera(name)
    {
        var map = {}

        map.name = name
        map.posX = 0
        map.posY = 0
        map.posZ = 20

        map.rotationX = 40
        map.rotationY = 0
        map.rotationZ = 0

        map.scaleX = 1
        map.scaleY = 1
        map.scaleZ = 1

        map.mesh = ""
        map.color = "#ffffff"

        return map
    }

    function initDirectionLight(name)
    {
        var map = {}

        map.name = name
        map.posX = 0
        map.posY = 0
        map.posZ = 20

        map.rotationX = 40
        map.rotationY = 0
        map.rotationZ = 0

        map.scaleX = 1
        map.scaleY = 1
        map.scaleZ = 1

        map.mesh = ""
        map.color = "#a6a6a6"
        map.ambientColor = "#a6a6a6"
        map.brightness = 70

        return map
    }

    function initIcon(name)
    {
        var map = {}

        map.name = name
        map.posX = 0
        map.posY = 20
        map.posZ = 0

        map.rotationX = 0
        map.rotationY = 0
        map.rotationZ = 0

        map.scaleX = 0.1
        map.scaleY = 0.1
        map.scaleZ = 0.1

        map.mesh = ""
        map.color = "#ffffff"

        return map
    }
}
